<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    
<jsp:include page="header.jsp">
	<jsp:param name="pageTitle" value="Home"/>
</jsp:include>
<BR>
<table  class = "roundBoarders" width = "100%">
<tr>
<td>
	<form:form modelAttribute="ClientFilter" method="post" action="homeFilter.html">
	<td width=2%></td>
		<td width=18%>
			<table>
				<TR>
					<TD> 
						<STRONG>Need</STRONG> 
					</TD>
					<TD>
						<form:select path="needCategory">
						<form:options items="${needCategory}" itemValue="key" itemLabel="value" />
						</form:select>
					</TD>
				</TR>
				<TR>
					<TD> 
						<STRONG>City</STRONG>
					</TD>
					<TD>
						<form:select path="city">
						<form:options items="${cityList}" itemValue="key" itemLabel="value" />
						</form:select>
					</TD>
				</TR>
				<TR>
					<TD>
						<form:label path="disabled"><STRONG>Disabled</STRONG></form:label>
					</TD>
					<TD>
						<form:checkbox path="disabled" />
					</TD>
				</TR>
				<TR>
					<TD> 
						<form:label path="veteran"><STRONG>Veteran</STRONG></form:label>
					</TD>
					<TD>
						<form:checkbox path="veteran" />
					</TD>
				</TR>		
			</table>
			</STRONG>
		</td>
		<td width=25%>
		<table>
			<TR>
				<TD><STRONG>Age: <form:input path="ageBegin" size="1"/> to <form:input path="ageEnd" size="1"/></STRONG>
			</TR>
			<TR>
				<TD>
					<STRONG> Num Of Children </STRONG>
				</TD>
				<TD>
					<form:input path="numOfChildren" size ="1" />
				</TD>
				<TD>
					<form:radiobutton path="numOfChildrenModifier" value ="GT" /><STRONG> > </STRONG><BR>
					<form:radiobutton path="numOfChildrenModifier" value ="LT" /><STRONG> < </STRONG><BR>
					<form:radiobutton path="numOfChildrenModifier" value ="EQ" /><STRONG> = </STRONG><BR>
				</TD>
			</TR>
			<TR>
				<TD> 
					<STRONG>Include Completed:</STRONG>
				</TD>
				<TD>
					<form:checkbox path="completed" />
				</TD>
			</TR>
		</table>
		</td>
		<td><input type="submit" value="Filter"/></td>
		<td width=50% height=100%>
			<div style="width:2px;height:100px;background-color:#000000;">&nbsp;</div>
		</td>
	</form:form>
</td>
</tr>
<tr>

</table>
<BR>
<table class = "roundBoarders" width = "100%">
<tr>
<td><c:forEach items="${ClientList}" var = "client">
<c:out value="${client.getNeedDescription()}"/>
</c:forEach>${'test'}</td>
</tr>
</table>
